package com.gs.core.service.impl;

import java.util.List;

import com.gs.core.dao.BaseDaoI;
import com.gs.core.model.BaseModel;
import com.gs.core.service.BaseService;

public abstract class BaseServiceImpl< M extends BaseModel > implements BaseService<M> {

	public abstract BaseDaoI<M> getDao();

	@Override
	public M findById( Long id ){
		return getDao().findById(id).get();
	}
	
	@Override
	public List<M> findAll(){
		return getDao().findAll();
	}
	
	
	
	
}
